<?php
use lib\controller\Controller;
use lib\dao\query\Query;

class ReporteController extends Controller{


	public function index(){
		try{
			$Q=new Query($this->Model);
			$this->View->assign('compraXEvento', $this->Model->compraXEvento($Q));

			$Q2=new Query($this->Model);
			$this->View->assign('compraXCategoria', $this->Model->compraXCategoria($Q2));
                        
		}catch (\Exception $e){
			$this->View->assign('msg', array('error',$e->getMessage()));
		}
		$this->View->display();
	}

}
?>